package com.neu.af.dataFilter.entity;

import java.io.Serializable;

public class User implements Serializable {
    private Integer id;

    private String name;

    private String password;

    private Integer type;

    private String typeName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypename() {
        return typeName;
    }

    public void setTypename(String typename) {
        this.typeName = typename == null ? null : typename.trim();
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", type=" + type +
                ", typeName='" + typeName + '\'' +
                '}';
    }

    public User(String name, String password, Integer type, String typeName) {
        this.name = name;
        this.password = password;
        this.type = type;
        this.typeName = typeName;
    }

    public User(Integer id, String name, String password, Integer type, String typeName) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.type = type;
        this.typeName = typeName;
    }
}